package com.zuoye.Service;

import com.zuoye.Dao.StuDaoIntImpl;
import com.zuoye.Opjo.Student;

import java.util.ArrayList;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/30  18:09
 * @Copyright
 */
public class StuSerIntImpl implements StuServiceInterface {
    public StuSerIntImpl() {
    }

    @Override
    public int addStuSer(ArrayList<Student> list) {
        final StuDaoIntImpl stuDaoInt = new StuDaoIntImpl();
        return stuDaoInt.insert(list);
    }

    @Override
    public int delStuSer(int studentId) {
        final StuDaoIntImpl stuDaoInt = new StuDaoIntImpl();

        return stuDaoInt.delete(studentId);
    }

    @Override
    public int updStuSer(Student student) {
        final StuDaoIntImpl stuDaoInt = new StuDaoIntImpl();

        return stuDaoInt.update(student);
    }

    @Override
    public ArrayList<Student> queStuSer(Student student) {
        final StuDaoIntImpl stuDaoInt = new StuDaoIntImpl();

        return stuDaoInt.query(student);
    }
}
